<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
    <title></title>
    <script src="js/mui.min.js"></script>
    <link href="css/mui.min.css" rel="stylesheet"/>
    <script type="text/javascript" charset="utf-8">
      	mui.init();
		mui.toast('欢迎回来');
    </script>
</head>
<body>
	<header class="mui-bar mui-bar-nav">
		<h1 class="mui-title">欢迎来到天书</h1>
	</header>

	<div class="mui-content"><!--文章主题部分-->

		<div id="slider" class="mui-slider"><!--轮播图-->
		  <div class="mui-slider-group mui-slider-loop">
			<!-- 额外增加的一个节点(循环轮播：第一个节点是最后一张轮播) -->
			<div class="mui-slider-item mui-slider-item-duplicate">
			  <a href="html/activity/NewPlay.html">
				<img src="photo/Deity.jpg" style="margin: 0;padding: 0;height: 100%;">
			  </a>
			</div>
			<!-- 第一张 -->
			<div class="mui-slider-item">
			  <a href="html/activity/NewPlay.html">
				<img src="photo/NewPlay.png">
			  </a>
			</div>
			<!-- 第二张 -->
			<div class="mui-slider-item">
			  <a href="html/activity/Deity.html">
				<img src="photo/Deity.jpg">
			  </a>
			</div>
			<!-- 额外增加的一个节点(循环轮播：最后一个节点是第一张轮播) -->
			<div class="mui-slider-item mui-slider-item-duplicate">
			  <a href="html/activity/NewPlay.html">
				<img src="photo/NewPlay.png">
			  </a>
			</div>
		  </div>
		  <div class="mui-slider-indicator"><!--底下按钮-->
			<div class="mui-indicator mui-active"></div>
			<div class="mui-indicator"></div>
		  </div>
		</div>


		<ul class="mui-table-view"><!--主要按钮部分-->
			<script>//跳转函数
				function StarPlay_NowWorld(){if(plus.storage.getItem("YouDie") != "1"){window.location.href='html/world/NowWorld/home.html';}else{alert("请先去魂界转生");}}
				function StarPlay_SoulWorld(){if(plus.storage.getItem("OneDie") != null){window.location.href='html/world/SoulWorld/home.html';}else{alert("请先前往现世界")}}
				function StarPlay_BookWorld(){alert("加急制作中");/* window.location.href='html/world/BookWorld/home.html'; */}
				function StarPlay_EmptyWorld(){alert("加急制作中");/* window.location.href='html/world/EmptyWorld/home.html'; */}
			</script>
			<li class="mui-table-view-cell mui-collapse"><!--开始游戏区块-->
				<a class="mui-navigate-right" href="#">开始游戏</a>
				<div class="mui-collapse-content">
					<div class="mui-row">
						<div class="mui-col-sm-3 mui-col-xs-3"><button onclick="StarPlay_NowWorld()" type="button" class="mui-btn mui-btn-blue mui-btn-outlined mui-btn-block">进入世界</button></div>
						<div class="mui-col-sm-3 mui-col-xs-3"><button onclick="StarPlay_SoulWorld()" type="button" class="mui-btn mui-btn-blue mui-btn-outlined mui-btn-block">进入魂界</button></div>
						<div class="mui-col-sm-3 mui-col-xs-3"><button onclick="StarPlay_BookWorld()" type="button" class="mui-btn mui-btn-blue mui-btn-outlined mui-btn-block">进入天书</button></div>
						<div class="mui-col-sm-3 mui-col-xs-3"><button onclick="StarPlay_EmptyWorld()" type="button" class="mui-btn mui-btn-blue mui-btn-outlined mui-btn-block">进入虚无</button></div>
					</div>
				</div>
			</li>

			<li class="mui-table-view-cell mui-collapse"><!--游戏相关区块-->
				<a class="mui-navigate-right" href="#">游戏相关</a>
				<div class="mui-collapse-content">
					<div class="mui-row">
						<div class="mui-col-sm-3 mui-col-xs-3"><button onclick="goto_blog()" type="button" class="mui-btn mui-btn-green mui-btn-outlined mui-btn-block">天书官网</button></div>
						<div class="mui-col-sm-3 mui-col-xs-3"><button onclick="think_name()" type="button" class="mui-btn mui-btn-green mui-btn-outlined mui-btn-block">致谢名单</button></div>
						<div class="mui-col-sm-3 mui-col-xs-3"><a href="html/help/HelpHome.html"><button type="button" class="mui-btn mui-btn-green mui-btn-outlined mui-btn-block">游玩帮助</button></a></div>
					</div>
				</div>
			</li>
				<script>
					function goto_blog(){//前往官网
						alert("可能会卡顿一段时间,请耐心等待,或直接在浏览器输入网址:https://tianshublog.repl.co(官网已g了...)");
						window.location.href='#';
					}
					function think_name(){//感谢名单
						alert("帮助此软件开发者皆可进入名单");
						window.location.href='html/tell/other/think_name.html';
					}
				</script>
			</li>

			<li class="mui-table-view-cell mui-collapse"><!--统计数据区块-->
				<a class="mui-navigate-right" href="#">统计数据</a>
				<script>
					function MissData(){
						var MissData_text = "第一次游玩:" + plus.storage.getItem("OneInDate");
						MissData_text += "<br>第一次死亡:" + plus.storage.getItem("OneDie");
						MissData_text += "<br>第一次创星:" + plus.storage.getItem("OneCreate");
						MissData_text += "<br>第一次轮回:" + plus.storage.getItem("OneLoop");
						MissData_text += "<br>第一次斩神:" + plus.storage.getItem("OneKillGod");
						MissData_text += "<br>第一次灭星:" + plus.storage.getItem("OneKillStar");
						MissData_text += "<br>第一次灭界:" + plus.storage.getItem("OneKillWorld");
						mui.alert(MissData_text,'那时的你','确认',function(e){e.index},'div');
						//这里要加一个勿忘初心
					}
				</script>
				<div class="mui-collapse-content">
					<button onclick="MissData()" type="button" class="mui-btn mui-btn-purple mui-btn-outlined mui-btn-block">纪念数据</button>
				</div>
			</li>
		</ul>
	</div>
</body>
</html>